﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Panel.Master" Inherits="System.Web.Mvc.ViewPage<Prodma.DataAccess.Models.ViewModels.UserVm>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Address
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<form id="address">
    <div class="listHeader">
            <img src="../../Images/ListImages/userlist.png" alt="" class="listHeaderIco" />
            <div class="listHeaderText">Siparişler</div>        
            <div class="listHeaderMenuBox">
                <% Html.RenderPartial("/views/shared/userControls/Navigation.ascx",
                      Prodma.DataAccess.Authorization.Authorization.GetNavigation("onayla", 3));%>
            </div>
     </div>
<%Prodma.DataAccess.Models.ViewModels.UserVm user = (Prodma.DataAccess.Models.ViewModels.UserVm) ViewData.Model; %>
    <div class="confirmAddressContainer">
    <div class="detailSectionHeader">Teslimat Adresi</div>
    <div class="detailSectionRow">
        <div class="detailSectionRowTitle">Adres Tanımı :</div>
        <div class="detailSectionRowText"><input type="text" id="addressDescription" name="addressDescription" maxlength="50" class="detailSectionControl" value="<%=user.Adress_1 %>"/></div>
    </div>
    <div class="detailSectionRow">
        <div class="detailSectionRowTitle">İsim :</div>
        <div class="detailSectionRowText"><input type="text" id="name" name="name" maxlength="50" class="detailSectionControl" value="<%=user.FirstName%>"/></div>
    </div>
    <div class="detailSectionRow">
        <div class="detailSectionRowTitle">Soyisim :</div>
        <div class="detailSectionRowText"><input type="text" id="surName" name="surName" maxlength="50" class="detailSectionControl" value="<%=user.LastName%>"/></div>
    </div>
    <div class="detailSectionRow">
        <div class="detailSectionRowTitle">Adres :</div>
        <div class="detailSectionRowText"><textarea id="addressText" rows="3" cols="20" class="detailSectionControl" ><%=user.Adress_2 %></textarea></div>
    </div>
    <div class="detailSectionRow">
        <div class="detailSectionRowTitle">Posta Kodu :</div>
        <div class="detailSectionRowText"><input type="text" id="postalCode" name="postalCode" maxlength="50" class="detailSectionControl"/></div>
    </div>
    <div class="detailSectionRow">
        <div class="detailSectionRowTitle">Şehir :</div>
        <div class="detailSectionRowText"> <input type="text" id="City" name="City" maxlength="50" class="detailSectionControl"/></div>
    </div>
    <div class="detailSectionRow">
        <div class="detailSectionRowTitle">İlçe :</div>
        <div class="detailSectionRowText"><input type="text" id="State" name="State" maxlength="50" class="detailSectionControl"/></div>
    </div>
    <div class="detailSectionRow">
        <div class="detailSectionRowTitle">Cep Telefonu:</div>
        <div class="detailSectionRowText"><input type="text" id="cellPhone" name="cellPhone" maxlength="50" class="detailSectionControl" value="<%=user.Telefon %>"/></div>
    </div>
    <div class="detailSectionRow">
        <div class="detailSectionRowTitle">Telefon:</div>
        <div class="detailSectionRowText"><input type="text" id="fixedPhone" name="fixedPhone" maxlength="50" class="detailSectionControl" value="<%=user.Telefon %>"/></div>
    </div>
    </div>
</form> 
<script>
    function submitFormtoComplete() {

        var form = document.getElementById('address')
        form.action = '/Sepet/CompleteChart'
        form.submit();
    
    }
</script>

</asp:Content>
